package com.hzhc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 微信小程序菜单
 * </p>
 *
 * @author oyd
 * @since 2022-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_wx_menu")
public class SysWxMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    private String title;

    /**
     * 父Id
     */
    private Long pid;

    /**
     * 图片url
     */
    @TableField("imgUrl")
    private String imgUrl;

    private String path;

    /**
     * 是否删除
     */
    private Integer disable;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 排序值
     */
    private Integer ordernum;

    /**
     * 备注
     */
    private String remark;
    /**
     * 子项
     */
    @TableField(exist = false)
    private List<SysWxMenu> children;

    /**
     * 系统ID(默认:1-荆州港李埠港,2-荆州港盐卡港,3-武汉金控码头)
     */
    private Integer systemId;
    private Integer systemMenuId;

    /**
     * 菜单状态 0正常 1停用
     */
    private String menuStatus;
}
